package com.steak.business.adapter;

import com.alibaba.fastjson.JSON;
import com.steak.business.service.PlaceOrderExecute;
import com.steak.common.domain.dto.PlaceOrderDTO;
import com.steak.common.result.Response;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * @author 刘牌
 * @Title:
 * @date 2022/3/19:50
 */
@RestController
@AllArgsConstructor
public class PlaceOrderApi {

    private final PlaceOrderExecute placeOrderExecute;

    @PostMapping("placeOrder")
    public Response placeOrder(@RequestBody PlaceOrderDTO placeOrderDTO){
        return placeOrderExecute.execute(placeOrderDTO);
    }

}
